<template>
  <div class="brand">
    <!-- 头部 -->
    <Header title="品牌街" :back="true"> </Header>
    <!-- 推荐品牌区 -->
    <div class="brand_main">
      <div class="brand_til">
        推荐品牌
      </div>
      <!-- 品牌logo -->
      <div class="brand_logo">
        <van-image
          :src="'http://122.51.249.55:3000/' + item.logo"
          v-for="item in logoList"
          :key="item.id"
        />
      </div>
    </div>
  </div>
</template>

<script>
import Header from "@/components/Header";
export default {
  components: {
    Header
  },
  data() {
    return {
      logoList: []
    };
  },
  created() {
    this.getBrandList();
  },
  methods: {
    async getBrandList() {
      let { data: res } = await this.$axios.get("Index/brandStreet");
      if (res.status !== 1)
        return this.$notify({ type: "danger", message: res.msg });
      this.logoList = res.result;
      console.log(res);
    }
  }
};
</script>

<style lang="less" >
.brand {
  background-color: #f4f5fa;
  .header {
    background-color: #fff;
    font-weight: normal;
  }
  .header .lt[data-v-61dd7a3d] {
    transform: translateY(50%);
    margin-left: 24px;
  }
  .brand_main {
    padding: 29px 24px 0;

    .brand_til {
      font-size: 32px;
      color: #333333;
      font-weight: 700;
      padding-bottom: 20px;
      text-align: center;
      border-bottom: 1px solid #ddd;
      margin-bottom: 30px;
    }
    .brand_logo {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;

      .van-image {
        width: 168px;
        height: 100px;
        margin-bottom: 20px;
      }
    }
  }
}
</style>
